import Vue from 'vue'
import Router from 'vue-router'
//import HelloWorld from '@/components/HelloWorld'
import Home from '@/pages/home'
import Detail from '@/pages/goodsDetail'
import Msg from '@/components/Message'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'HelloWorld',
      component: Home
    },
    {
      path: '/detail/msg',
      component: Msg
    },
    {
      path: '/detail',
      component: Detail,
      children: [
        {
            path:'msg',
            component: Msg
        }
      ]
    }
  ]
})
